package com.xmtlxx.system.mapper;

import com.xmtlxx.common.core.domain.entity.SysTenant;
import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 租户Mapper接口
 *
 * @author xmtlxx
 * @date 2022-04-17
 */
public interface SysTenantMapper extends BaseMapperPlus<SysTenantMapper, SysTenant, SysTenant> {

    /**
     * 根据条件分页查询租户
     *
     * @param sysTenant 租户
     * @return Page SysTenant
     */
    Page<SysTenant> selectPageSysTenantList(@Param("page") Page<SysTenant> page,@Param("sysTenant") SysTenant sysTenant);

    /**
     * 查询租户列表
     *
     * @param sysTenant 租户
     * @return 租户集合
     */
    List<SysTenant> selectSysTenantList(SysTenant sysTenant);

}
